package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfPhoneCodeDao;
import com.wfcm.entity.WfPhoneCodeEntity;
import com.wfcm.service.WfPhoneCodeService;



@Service("wfPhoneCodeService")
public class WfPhoneCodeServiceImpl implements WfPhoneCodeService {
	@Autowired
	private WfPhoneCodeDao wfPhoneCodeDao;
	
	@Override
	public WfPhoneCodeEntity queryObject(Integer id){
		return wfPhoneCodeDao.queryObject(id);
	}
	
	@Override
	public List<WfPhoneCodeEntity> queryList(Map<String, Object> map){
		return wfPhoneCodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfPhoneCodeDao.queryTotal(map);
	}
	
	@Override
	public void save(WfPhoneCodeEntity wfPhoneCode){
		wfPhoneCodeDao.save(wfPhoneCode);
	}
	
	@Override
	public WfPhoneCodeEntity queryPhoneCode(Map<String, String> map){
		return wfPhoneCodeDao.queryPhoneCode(map);
	}
	
	@Override
	public void update(WfPhoneCodeEntity wfPhoneCode){
		wfPhoneCodeDao.update(wfPhoneCode);
	}
	
	@Override
	public void delete(Integer id){
		wfPhoneCodeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfPhoneCodeDao.deleteBatch(ids);
	}

	@Override
	public void deleteByPhone(String phone) {
		wfPhoneCodeDao.deleteByPhone(phone);
	}
	
}
